#ifndef __SPI_H
#define __SPI_H

#include "system.h"




#define SPI1_SCLK_PORT		  PORTC
#define SPI1_SCLK_PIN			  PIN7

#define SPI1_MOSI_PORT		  PORTM
#define SPI1_MOSI_PIN			  PIN20

#define SPI1_CS_PORT		    GPIOC
#define SPI1_CS_PIN			    PIN6


void SPI1_Init(void);
void SPI1_ReadWrite(uint8_t data,uint8_t mode);

#endif









